package com.microcity.autocomponent.autoview.viewex.pie;

import android.support.annotation.NonNull;

/**
 * User: yaodong(1126220529@qq.com)
 * Date: 2017-05-17
 * Time: 00:29
 * FIXME
 */


public class PieData {
    //用户关心的数据
    private String name;//名字
    private float value;//数据值
    private float persentage;//百分比

    //非用户关心数据
    private int color = 0;//颜色
    private float angle = 0;//角度

    public PieData(@NonNull String name, @NonNull float value) {
        this.name = name;
        this.value = value;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public float getValue() {
        return value;
    }

    public void setValue(float value) {
        this.value = value;
    }

    public float getPersentage() {
        return persentage;
    }

    public void setPersentage(float persentage) {
        this.persentage = persentage;
    }

    public int getColor() {
        return color;
    }

    public void setColor(int color) {
        this.color = color;
    }

    public float getAngle() {
        return angle;
    }

    public void setAngle(float angle) {
        this.angle = angle;
    }
}
